package com.entity;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.beanutils.BeanUtils;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.lang.reflect.InvocationTargetException;
import java.util.Date;


/**
 * 药品信息
 * 数据库通用操作实体类（普通增删改查）
 *
 * @author
 * @email
 * @date 2021-03-23 08:51:28
 */
@TableName("yaopinxinxi")
public class YaopinxinxiEntity<T> implements Serializable {
    private static final long serialVersionUID = 1L;
    /**
     * 主键id
     */
    @TableId
    private Long id;
    /**
     * 药品名称
     */

    private String yaopinmingcheng;
    /**
     * 药品类别
     */

    private String yaopinleibie;
    /**
     * 图片
     */

    private String tupian;
    /**
     * 规格
     */

    private String guige;
    /**
     * 厂家
     */

    private String changjia;
    /**
     * 有效期
     */

    private String youxiaoqi;
    /**
     * 数量
     */

    private Integer shuliang;
    /**
     * 药品详情
     */

    private String yaopinxiangqing;
    /**
     * 最近点击时间
     */

    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat
    private Date clicktime;
    /**
     * 点击次数
     */

    private Integer clicknum;
    /**
     * 价格
     */

    private Float price;
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat
    private Date addtime;

    public YaopinxinxiEntity() {

    }


    public YaopinxinxiEntity(T t) {
        try {
            BeanUtils.copyProperties(this, t);
        } catch (IllegalAccessException | InvocationTargetException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
    }

    public Date getAddtime() {
        return addtime;
    }

    public void setAddtime(Date addtime) {
        this.addtime = addtime;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 获取：药品名称
     */
    public String getYaopinmingcheng() {
        return yaopinmingcheng;
    }

    /**
     * 设置：药品名称
     */
    public void setYaopinmingcheng(String yaopinmingcheng) {
        this.yaopinmingcheng = yaopinmingcheng;
    }

    /**
     * 获取：药品类别
     */
    public String getYaopinleibie() {
        return yaopinleibie;
    }

    /**
     * 设置：药品类别
     */
    public void setYaopinleibie(String yaopinleibie) {
        this.yaopinleibie = yaopinleibie;
    }

    /**
     * 获取：图片
     */
    public String getTupian() {
        return tupian;
    }

    /**
     * 设置：图片
     */
    public void setTupian(String tupian) {
        this.tupian = tupian;
    }

    /**
     * 获取：规格
     */
    public String getGuige() {
        return guige;
    }

    /**
     * 设置：规格
     */
    public void setGuige(String guige) {
        this.guige = guige;
    }

    /**
     * 获取：厂家
     */
    public String getChangjia() {
        return changjia;
    }

    /**
     * 设置：厂家
     */
    public void setChangjia(String changjia) {
        this.changjia = changjia;
    }

    /**
     * 获取：有效期
     */
    public String getYouxiaoqi() {
        return youxiaoqi;
    }

    /**
     * 设置：有效期
     */
    public void setYouxiaoqi(String youxiaoqi) {
        this.youxiaoqi = youxiaoqi;
    }

    /**
     * 获取：数量
     */
    public Integer getShuliang() {
        return shuliang;
    }

    /**
     * 设置：数量
     */
    public void setShuliang(Integer shuliang) {
        this.shuliang = shuliang;
    }

    /**
     * 获取：药品详情
     */
    public String getYaopinxiangqing() {
        return yaopinxiangqing;
    }

    /**
     * 设置：药品详情
     */
    public void setYaopinxiangqing(String yaopinxiangqing) {
        this.yaopinxiangqing = yaopinxiangqing;
    }

    /**
     * 获取：最近点击时间
     */
    public Date getClicktime() {
        return clicktime;
    }

    /**
     * 设置：最近点击时间
     */
    public void setClicktime(Date clicktime) {
        this.clicktime = clicktime;
    }

    /**
     * 获取：点击次数
     */
    public Integer getClicknum() {
        return clicknum;
    }

    /**
     * 设置：点击次数
     */
    public void setClicknum(Integer clicknum) {
        this.clicknum = clicknum;
    }

    /**
     * 获取：价格
     */
    public Float getPrice() {
        return price;
    }

    /**
     * 设置：价格
     */
    public void setPrice(Float price) {
        this.price = price;
    }

}
